package com.wyy.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;

import java.util.ArrayList;
import java.util.List;

public class Demo2 {

    private static RedisUtils redisUtils;

    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("new Role()");
        list.add("new Role()");
        list.add("new Role()");
        redisUtils.set("test1", "hello");
        System.out.println(redisUtils.get("test2"));
    }
}
